<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterJtkGoodTableDel extends Migrator
{

    public function up()
    {
        $this->table('jtk_goods')
            ->removeColumn('deleted_at');

        // 清空数据
        \think\facade\Db::name('jtk_goods')->delete(true);
        \think\facade\Db::name('jtk_goods_shop')->delete(true);
    }
}
